package com.kevin.tools.data.mapper;


public class Data implements Comparable<Data>{
	
	public int id;
	
	public String name;
	
	public String desc;
	
	public int seq;
	
	public Data right;
	
	public int getId() {
		return id;
	}

	public void setId(int id) {
		this.id = id;
	}

	public String getName() {
		return name;
	}

	public void setName(String name) {
		this.name = name;
	}

	public String getDesc() {
		return desc;
	}

	public void setDesc(String desc) {
		this.desc = desc;
	}

	public int getSeq() {
		return seq;
	}

	public void setSeq(int seq) {
		this.seq = seq;
	}
	
	public Data getRight() {
		return right;
	}

	public void setRight(Data right) {
		this.right = right;
	}

	@Override
	public int compareTo(Data o) {
		if(seq>o.seq)
			return 1;
		else if(seq==o.seq)
			return 0;
		else
		    return -1;
	}

}
